/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_out_car_register.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.tb_car_info.entity.TbCarInfo;
import com.thinkgem.jeesite.modules.tb_discharge_cargo_address.entity.TbDischargeCargoAddress;
import com.thinkgem.jeesite.modules.tb_driver.entity.TbDriver;
import com.thinkgem.jeesite.modules.tb_goods.entity.TbGoods;
import com.thinkgem.jeesite.modules.tb_goods_consignment_company.entity.TbGoodsConsignmentCompany;
import com.thinkgem.jeesite.modules.tb_goods_receipt_company.entity.TbGoodsReceiptCompany;
import com.thinkgem.jeesite.modules.tb_loading_address.entity.TbLoadingAddress;
import com.thinkgem.jeesite.modules.tb_waybill.entity.TbWaybill;

/**
 * 出车登记Entity
 * @author ZhangYangZe
 * @version 2017-06-03
 */
public class TbOutCarRegister extends DataEntity<TbOutCarRegister> {
	
	private static final long serialVersionUID = 1L;
	private String waybillId;		// 运单ID
	private Double money;		// 领款金额
	private String oilCare;		// 油卡
	private Integer moneyUser;		// 领款人ID
	private Date beginCreateDate;		// 开始 填报时间
	private Date endCreateDate;		// 结束 填报时间
	
	
	//Entity
		private TbWaybill tbWaybill;//运单
		private TbCarInfo tbCarInfo;//车
		private TbDriver tbDriver;//司机
		private TbDriver tbDriverTwo;//司机
		private TbDriver tbDriverThree;//司机
		private TbGoods tbGoods;//货物
		private TbLoadingAddress tbLoadingAddress;//装货地址
		private TbDischargeCargoAddress tbDischargeCargoAddress;//卸货地址
		private TbGoodsConsignmentCompany tbGoodsConsignmentCompany;//托运公司
		private TbGoodsReceiptCompany tbGoodsReceiptCompany;//收货公司
	
	public TbOutCarRegister() {
		super();
	}

	public TbOutCarRegister(String id){
		super(id);
	}

	@Length(min=1, max=50, message="运单ID长度必须介于 1 和 50 之间")
	public String getWaybillId() {
		return waybillId;
	}

	public void setWaybillId(String waybillId) {
		this.waybillId = waybillId;
	}
	
	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}
	
	@Length(min=1, max=1, message="油卡长度必须介于 1 和 1 之间")
	public String getOilCare() {
		return oilCare;
	}

	public void setOilCare(String oilCare) {
		this.oilCare = oilCare;
	}
	
	public Integer getMoneyUser() {
		return moneyUser;
	}

	public void setMoneyUser(Integer moneyUser) {
		this.moneyUser = moneyUser;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}

		
	
	//***********************************************************************************************\\
	
	public TbCarInfo getTbCarInfo() {
		return tbCarInfo;
	}

	public void setTbCarInfo(TbCarInfo tbCarInfo) {
		this.tbCarInfo = tbCarInfo;
	}

	public TbDriver getTbDriver() {
		return tbDriver;
	}

	public void setTbDriver(TbDriver tbDriver) {
		this.tbDriver = tbDriver;
	}

	public TbDriver getTbDriverTwo() {
		return tbDriverTwo;
	}

	public void setTbDriverTwo(TbDriver tbDriverTwo) {
		this.tbDriverTwo = tbDriverTwo;
	}

	public TbGoods getTbGoods() {
		return tbGoods;
	}

	public void setTbGoods(TbGoods tbGoods) {
		this.tbGoods = tbGoods;
	}

	public TbLoadingAddress getTbLoadingAddress() {
		return tbLoadingAddress;
	}

	public void setTbLoadingAddress(TbLoadingAddress tbLoadingAddress) {
		this.tbLoadingAddress = tbLoadingAddress;
	}

	public TbDischargeCargoAddress getTbDischargeCargoAddress() {
		return tbDischargeCargoAddress;
	}

	public void setTbDischargeCargoAddress(TbDischargeCargoAddress tbDischargeCargoAddress) {
		this.tbDischargeCargoAddress = tbDischargeCargoAddress;
	}

	public TbGoodsConsignmentCompany getTbGoodsConsignmentCompany() {
		return tbGoodsConsignmentCompany;
	}

	public void setTbGoodsConsignmentCompany(TbGoodsConsignmentCompany tbGoodsConsignmentCompany) {
		this.tbGoodsConsignmentCompany = tbGoodsConsignmentCompany;
	}

	public TbGoodsReceiptCompany getTbGoodsReceiptCompany() {
		return tbGoodsReceiptCompany;
	}

	public void setTbGoodsReceiptCompany(TbGoodsReceiptCompany tbGoodsReceiptCompany) {
		this.tbGoodsReceiptCompany = tbGoodsReceiptCompany;
	}

	public TbDriver getTbDriverThree() {
		return tbDriverThree;
	}

	public void setTbDriverThree(TbDriver tbDriverThree) {
		this.tbDriverThree = tbDriverThree;
	}

	public TbWaybill getTbWaybill() {
		return tbWaybill;
	}

	public void setTbWaybill(TbWaybill tbWaybill) {
		this.tbWaybill = tbWaybill;
	}
	
	
	
}